#ifndef LEUART_H
#define LEUART_H

#include "em_usart.h"
#include "em_cmu.h"
#include "em_device.h"
#include <stdio.h>
#include "user_define.h"

typedef struct  
{
	u8 TXBuf[USART_TXE_LEN];
	
	u8 RXBuf[USART_REC_LEN];
	
	u8 TxLength;
	
	unsigned short RxLength;
	
	u8 TxIndex;
	
	u8 Status;
	
	u16 RxTimeout;
	
	u8 TxTimeout;
	
}t_uart;

void dbg_setup_uart(void);

#endif 
